{% extends "templates/base.html" %}

{% block content %}
<div class="gallery">
    <div id="error"></div>
    <div>
        {% for pic in pictures %}
        <div class="thumbnail">
            <a class="{{pic.name}}" href="{{context}}/img/{{pic.userid}}/{{pic.name}}">
                <img src="{{context}}/img/{{pic.userid}}/{{thumb-prefix}}{{pic.name}}">
                {% ifequal user page-owner %}
                <input type="checkbox" id="{{pic.name}}" name="{{pic.name}}" value="true">
                {% endifequal %}
            </a>
        </div>
        {% endfor %}

        {% ifequal user page-owner %}
        <input type="submit" id="delete" value="delete image">
        {% endifequal %}
    </div>
</div>
{% endblock %}

{% block user-scripts %}
<script src="{{context}}/js/gallery.js"></script>
{% endblock %}